package com.brspace.qualitycontrol.entity.vo;/**
 * @Author wangt
 * @Date 2021/4/20 14:33
 * @Version 1.0
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Author: Mr.Wang
 * @Date: 2021-04-20 14:33
 **/
@Data
public class LeaveListVo {

    @ApiModelProperty(value = "uuid")
    private String id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "姓名")
    private String username;

    @ApiModelProperty(value = "请假原因")
    private String text;

    @ApiModelProperty(value = "类型 加班0 请假1")
    private int state;

    @ApiModelProperty(value = "开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty(value = "结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endDate;

    @ApiModelProperty(value = "备注   json字符串")
    private List<RemakesVo> remarks;
}
